<!DOCTYPE html>
<html>
  <head>
    <title>Blog Test</title>
    <%= csrf_meta_tags %>
  </head>

  <body>
  <div class="navbar-brand">
    <%= link_to 'Blog Test', root_path, class: "navbar-item" %>
  </div>
  <a href="/applicants/new">注册</a>
  <a href="/sessions/new">登录</a>
  	<section class="hero is-primary is-medium">
	  <div class="hero-head">
	    <nav class="navbar">
	      <div class="container">
	        <div id="navbarMenuHeroA" class="navbar-menu">
	          <div class="navbar-end">
	            <%= link_to "Create New Post", new_post_path, class:"navbar-item" %>
	          </div>
	        </div>
	      </div>
	    </nav>
	  </div>

	  <div class="hero-body">
	    <div class="container has-text-centered">
	      <h1 class="title">
	        <%= yield :page_title %>
	      </h1>
	    </div>
	  </div>
	</section>
    <%= yield %>
  </body>
</html>
